package com.myhome.feign;

import com.myhome.config.feign.OAuth2FeignConfig;
import com.myhome.dto.CoinDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author QYiXin
 * @Date 2021 10 29 15 37
 **/
@FeignClient(value = "finance-service", contextId = "CoinFeign", configuration = OAuth2FeignConfig.class, path = "/coins")
public interface CoinFeign {
    @GetMapping("/getCoinDto")
    public List<CoinDto> getListCoinDto(@RequestParam("ids") List<Long> ids);
}
